# coding=utf-8

import logging


class Parser(object):
    def __init__(self):
        logging.info("into parser root...")

    def _inner_parse(self, response):
        logging.info("empty parser implementation")

    def parse(self, response):
        item = self._inner_parse(response)
        if item is None:
            raise ValueError("Please return an item after parse...")
        return item
